/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import ch.cyberduck.core.sds.io.swagger.client.model.UpdateEncryptionPasswordPolicies;
import ch.cyberduck.core.sds.io.swagger.client.model.UpdateLoginPasswordPolicies;
import ch.cyberduck.core.sds.io.swagger.client.model.UpdateSharesPasswordPolicies;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * Request model for updating a set of password policies
 */
@Schema(description = "Request model for updating a set of password policies")

public class UpdatePasswordPoliciesConfig {
  @JsonProperty("loginPasswordPolicies")
  private UpdateLoginPasswordPolicies loginPasswordPolicies = null;

  @JsonProperty("sharesPasswordPolicies")
  private UpdateSharesPasswordPolicies sharesPasswordPolicies = null;

  @JsonProperty("encryptionPasswordPolicies")
  private UpdateEncryptionPasswordPolicies encryptionPasswordPolicies = null;

  public UpdatePasswordPoliciesConfig loginPasswordPolicies(UpdateLoginPasswordPolicies loginPasswordPolicies) {
    this.loginPasswordPolicies = loginPasswordPolicies;
    return this;
  }

   /**
   * Get loginPasswordPolicies
   * @return loginPasswordPolicies
  **/
  @Schema(description = "")
  public UpdateLoginPasswordPolicies getLoginPasswordPolicies() {
    return loginPasswordPolicies;
  }

  public void setLoginPasswordPolicies(UpdateLoginPasswordPolicies loginPasswordPolicies) {
    this.loginPasswordPolicies = loginPasswordPolicies;
  }

  public UpdatePasswordPoliciesConfig sharesPasswordPolicies(UpdateSharesPasswordPolicies sharesPasswordPolicies) {
    this.sharesPasswordPolicies = sharesPasswordPolicies;
    return this;
  }

   /**
   * Get sharesPasswordPolicies
   * @return sharesPasswordPolicies
  **/
  @Schema(description = "")
  public UpdateSharesPasswordPolicies getSharesPasswordPolicies() {
    return sharesPasswordPolicies;
  }

  public void setSharesPasswordPolicies(UpdateSharesPasswordPolicies sharesPasswordPolicies) {
    this.sharesPasswordPolicies = sharesPasswordPolicies;
  }

  public UpdatePasswordPoliciesConfig encryptionPasswordPolicies(UpdateEncryptionPasswordPolicies encryptionPasswordPolicies) {
    this.encryptionPasswordPolicies = encryptionPasswordPolicies;
    return this;
  }

   /**
   * Get encryptionPasswordPolicies
   * @return encryptionPasswordPolicies
  **/
  @Schema(description = "")
  public UpdateEncryptionPasswordPolicies getEncryptionPasswordPolicies() {
    return encryptionPasswordPolicies;
  }

  public void setEncryptionPasswordPolicies(UpdateEncryptionPasswordPolicies encryptionPasswordPolicies) {
    this.encryptionPasswordPolicies = encryptionPasswordPolicies;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdatePasswordPoliciesConfig updatePasswordPoliciesConfig = (UpdatePasswordPoliciesConfig) o;
    return Objects.equals(this.loginPasswordPolicies, updatePasswordPoliciesConfig.loginPasswordPolicies) &&
        Objects.equals(this.sharesPasswordPolicies, updatePasswordPoliciesConfig.sharesPasswordPolicies) &&
        Objects.equals(this.encryptionPasswordPolicies, updatePasswordPoliciesConfig.encryptionPasswordPolicies);
  }

  @Override
  public int hashCode() {
    return Objects.hash(loginPasswordPolicies, sharesPasswordPolicies, encryptionPasswordPolicies);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdatePasswordPoliciesConfig {\n");
    
    sb.append("    loginPasswordPolicies: ").append(toIndentedString(loginPasswordPolicies)).append("\n");
    sb.append("    sharesPasswordPolicies: ").append(toIndentedString(sharesPasswordPolicies)).append("\n");
    sb.append("    encryptionPasswordPolicies: ").append(toIndentedString(encryptionPasswordPolicies)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
